<?php

$this->Html->css('controllers/Users/admin.css?0', array('block' => 'stylesTop'));
$this->Html->script('controllers/Users/admin.js?7', array('block' => 'scriptBottom'));
$appBosch->crud = $this->TioCachas->urlsCRUD($appBosch->myCategory);
$appBosch->urlAreas = $this->Html->url(array('controller' => 'UserAreas', 'action' => 'admin'));
$appBosch->urlTests = $this->Html->url(array('controller' => 'Attempts', 'action' => 'admin'));
$appBosch->urlUserLines = $this->Html->url(array('controller' => 'UserLines', 'action' => 'admin'));
$appBosch->urlResetPass = $this->Html->url(array('action' => 'resetPass'));
$appBosch->urlUserLines = $this->Html->url(array('controller'=>'UserLines', 'action' => 'admin'));
$appBosch->urlGetPermissions = $this->Html->url(array('action' => 'getPermissions'));
$appBosch->urlSavePermissions = $this->Html->url(array('action' => 'savePermissions'));
?>
<script type="text/x-kendo-template" id="templateToolbar">
    <div class="toolbar">
        <span class="pull-left">
            <a class="k-button k-button-icontext k-grid-add" href="">
                <span class="k-icon k-add"></span>
                <?php echo __('Agregar usuario'); ?>
            </a>
        </span>
        <span class="pull-left">
            <a class="k-button k-button-icontext k-grid-excel" href="">
                <span class="k-icon k-i-excel"></span>
                <?php echo __('Exportar a Excel'); ?>
            </a>
        </span>
    </div>
</script>
<div id="wndLines"></div>
<div id="wndAreas">
    
</div>
<div id="wndPermissions" class='hidden'>
    <form>
        <div class="checkbox">
            <label>
                <input name='create' type="checkbox"> <?php echo('Crear certificaciónes'); ?>
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input name='read' type="checkbox"> <?php echo ('Ver detalles');?>
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input name='update' type="checkbox"> <?php echo('Modificar certificaciónes'); ?>
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input name='destroy' type="checkbox"> <?php echo('Eliminar certificaciónes'); ?>
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input name='end' type="checkbox"> <?php echo ('Modicar fin del proceso');?>
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input name='life' type="checkbox"> <?php echo ('Modicar vigencia');?>
            </label>
        </div>
    </form>
</div>
<div id="grid" class="bosch"></div>

<script id="dialogAlert" type="text/x-kendo-template">
    <p class="alertMessage" >#=info#</p>
    <div class="baseButton" >
        <input id="aceptButton" class="k-button k-primary" type="button" value="<?php echo __('Aceptar'); ?>"/>
    </div>
</script>

<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var appBosch = <?php echo json_encode($appBosch); ?>;
</script>
<?php
$this->end();
